<?php
/*
 * @Author: zwx
 * @Date: 2024-05-30 12:05:58
 * @LastEditors: zwx
 * @LastEditTime: 2024-08-26 17:16:37
 * @Description: 聚水潭拉公域订单
 */
declare(strict_types=1);

namespace app\apiadmin\command;

use app\apiadmin\controller\gongyu\GetOrdersFromJST;
use think\console\Command;
use think\console\Input;
use think\console\Output;
use think\facade\Db;
use think\facade\Log;

class jushuitan_getorder_bulou extends Command
{

    protected function configure()
    {
        // 命令的名称及用途描述
        $this->setName('jushuitan_getorder_bulou')->setDescription('拉取公域订单-补漏');
    }

    protected function execute(Input $input, Output $output)
    {
        // 你的后台运行代码
        $output->writeln("jushuitan_getorder_bulou");
        // 这里可以放置你的长时间运行的代码

        $start_time = '2024-08-22 00:00:00';
        $end_time = date("Y-m-d H:i:s", time());

        //拉取正常单
        $jst = new GetOrdersFromJST();
        echo $jst->getjushutanOrder_BuLou('', $start_time, $end_time) . PHP_EOL;

    }





}